package com.teach.dao;

import com.teach.dao.impl.AdminInfoDAOImpl;
import com.teach.entity.AdminInfo;
import org.junit.jupiter.api.Test;

import java.sql.SQLException;
import java.util.Date;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2022-05-05 10:02
 * Version : 1.0
 * Copyright 2022 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class AdminInfoDAOTest {

  private AdminInfoDAO dao = new AdminInfoDAOImpl();

  @Test
  public void insert() throws SQLException {
    dao.insert(new AdminInfo(null, "admin1", "123", new Date()));
  }

  @Test
  public void select()throws SQLException {
    System.out.println(dao.selectById(1));
    System.out.println(dao.select(0, 5));
  }

}
